package service;

import entity.Goods;
import entity.User;

import java.util.List;

public interface GoodsService {
    boolean insertGoodsService(Goods goods);
    boolean deleteGoodsByGoodsIdService(String goodsId);
    boolean updateGoodsByIdService(String goodsId, Goods goods);
    boolean changeGoodsByGoodsNameService(String goodsName,Goods goods);
    boolean buyGoodsByGoodsNameService(String goodsName,Goods goods);
    boolean returnGoodsByGoodsNameService(String goodsName,Goods goods);
    Goods selectGoodsByGoodsNameService(String goodsName);
    List<Goods> selectGoodsByIdService(String goodsId);
    List<Goods> selectAllGoodsService();
}
